home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Lib / qmgr / Makefile < prev    next >
Encoding:
Makefile  |  1991-12-18  |  7.0 KB  |  265 lines

  1. # Makefile to build the 822 addressing stuff
  2. #
  3. ############################################################
  4. #
  5. # @(#) $Header: /xtel/pp/pp-beta/Lib/qmgr/RCS/Makefile,v 6.0 1991/12/18 20:23:58 jpo Rel $
  6. #
  7. # $Log: Makefile,v $
  8. # Revision 6.0  1991/12/18  20:23:58  jpo
  9. # Release 6.0
  10. #
  11. #
  12. ############################################################
  13. #
  14. # Definitions
  15. #
  16. ############################################################
  17.  
  18.  
  19.  
  20. SRCS =    Qmgr-ops.c Qmgr_tables.c chan_control.c submit2qmgr.c \
  21.     chan_debug.c qstruct2qmgr.c recipstate.c \
  22.     comms.c consblk.c cons-misc.c op_chan.c op_msg.c \
  23.     op_mta.c op_que.c order.c op_filter.c
  24. OBJS =    Qmgr-ops.o chan_control.o \
  25.        chan_debug.o qstruct2qmgr.o recipstate.o \
  26.        submit2qmgr.o Qmgr_tables.o \
  27.     comms.o consblk.o cons-misc.o op_chan.o op_msg.o \
  28.     op_mta.o op_que.o order.o op_filter.o
  29.  
  30. HEADERS        = ../../h
  31.  
  32. CFLAGS        = $(LIBCCOPTIONS) -I$(HEADERS) $(LCF) 
  33. LLFLAGS        = $(LINTFLAGS) -I$(HEADERS) -u
  34. SHADOW        = qmgr-made
  35.  
  36. LINTLIBS    = ../addr/llib-laddr.ln \
  37.           ../charset/llib-lcs.ln \
  38.           ../format/llib-lfmt.ln \
  39.           ../io/llib-lio.ln \
  40.           ../or/llib-lor.ln \
  41.           ../parse/llib-lparse.ln \
  42.           ../pp/llib-lpp.ln \
  43.           ../table/llib-ltable.ln \
  44.           ../tai/llib-ltai.ln \
  45.           ../util/llib-lutil.ln \
  46.           ../x400/llib-lx400.ln
  47.  
  48.  
  49. ############################################################
  50. #
  51. # Building Rules
  52. #
  53. ############################################################
  54.  
  55. default: $(SHADOW)
  56.  
  57. $(SHADOW): $(OBJS)
  58.     $(AR) r$(ARFLAGS) ../libpp.a $?
  59.     touch $@
  60.  
  61. Qmgr-ops.c Qmgr-ops.h Qmgr-asn.py: qmgr.ry
  62.     $(ROSY) -pepsy $(RYFLAGS) -o $@ qmgr.ry
  63.     -cmp -s Qmgr-ops.h $(HEADERS)/Qmgr-ops.h || cp Qmgr-ops.h $(HEADERS)
  64.  
  65. Qmgr-types.h: Qmgr_tables.c
  66.  
  67. Qmgr_tables.o: Qmgr_tables.c
  68.  
  69. Qmgr_tables.c Qmgr-types.h: Qmgr-asn.py 
  70.     $(PEPSY) $(POFLAGS) -A -h -f Qmgr-asn.py
  71.     -cmp -s Qmgr-types.h $(HEADERS)/Qmgr-types.h || \
  72.         cp Qmgr-types.h $(HEADERS)/Qmgr-types.h
  73.     -if [ -f Qmgr_defs.h ]; \
  74.     then cmp -s Qmgr_defs.h $(HEADERS)/Qmgr_defs.h || \
  75.         cp Qmgr_defs.h $(HEADERS)/Qmgr_defs.h; \
  76.     fi
  77.     -if [ -f Qmgr_pre_defs.h ]; \
  78.     then cmp -s Qmgr_pre_defs.h $(HEADERS)/Qmgr_pre_defs.h || \
  79.         cp Qmgr_pre_defs.h $(HEADERS)/Qmgr_pre_defs.h; \
  80.     fi
  81.  
  82. Qmgr-ops.o: Qmgr-ops.c
  83.     $(CC) $(CFLAGS) -DPERFORMER -DINVOKER -c Qmgr-ops.c
  84.  
  85. lintlib: llib-lqmgr.ln
  86. llib-lqmgr.ln: $(SRCS)
  87.     $(LINT) -Cqmgr $(LLFLAGS) $(SRCS)
  88.  
  89. install:;
  90.  
  91. lint: $(SRCS)
  92.     $(LINT) $(LLFLAGS) $(SRCS) $(LINTLIBS) $(LINTISODE)
  93.  
  94. clean: tidy
  95.     rm -f $(OBJS) QMGR-*  llib-lqmgr.ln
  96.     rm -f Qmgr-asn.py Qmgr-ops.c Qmgr-ops.h Qmgr-ops.o
  97.     rm -f Qmgr-stubs.c Qmgr-stubs.o Qmgr-types.h Qmgr-types.py
  98.     rm -f Qmgr_*
  99.     rm -f $(HEADERS)/Qmgr-ops.h $(HEADERS)/Qmgr-types.h \
  100.         $(HEADERS)/Qmgr_defs.h $(HEADERS)/Qmgr_pre_defs.h 
  101.  
  102. tidy:
  103.     rm -f core $(SHADOW) *.old *.BAK *.ph
  104.  
  105. define:
  106.     $(DEFINE) Makefile
  107.  
  108. depend: $(SRCS)
  109.     $(DEPEND) -I$(HEADERS) $(SRCS)
  110.  
  111. ############################################################
  112. #
  113. # End of building rules
  114. #
  115. ############################################################
  116. # DO NOT DELETE THIS LINE MAKE DEPEND NEEDS IT
  117. # Dependencies follow
  118. Qmgr-ops.o: Qmgr-ops.c
  119. Qmgr-ops.o: Qmgr-types.h
  120. Qmgr-ops.o: Qmgr-ops.h
  121. Qmgr_tables.o: Qmgr_tables.c
  122. Qmgr_tables.o: Qmgr-types.h
  123. chan_control.o: chan_control.c
  124. chan_control.o: ../../h/qmgr.h
  125. chan_control.o: ../../h/Qmgr-types.h
  126. chan_control.o: ../../h/Qmgr-ops.h
  127. chan_control.o: ../../h/retcode.h
  128. chan_control.o: ../../h/ll_log.h
  129. submit2qmgr.o: submit2qmgr.c
  130. submit2qmgr.o: ../../h/head.h
  131. submit2qmgr.o: ../../h/util.h
  132. submit2qmgr.o: ../../h/config.h
  133. submit2qmgr.o: ../../h/ll_log.h
  134. submit2qmgr.o: ../../h/retcode.h
  135. submit2qmgr.o: ../../h/qmgr.h
  136. submit2qmgr.o: ../../h/Qmgr-types.h
  137. submit2qmgr.o: ../../h/Qmgr-ops.h
  138. submit2qmgr.o: ../../h/q.h
  139. submit2qmgr.o: ../../h/adr.h
  140. submit2qmgr.o: ../../h/list_rchan.h
  141. submit2qmgr.o: ../../h/chan.h
  142. submit2qmgr.o: ../../h/table.h
  143. submit2qmgr.o: ../../h/list_bpt.h
  144. submit2qmgr.o: ../../h/auth.h
  145. submit2qmgr.o: ../../h/list_bpt.h
  146. submit2qmgr.o: ../../h/extension.h
  147. submit2qmgr.o: ../../h/mta.h
  148. submit2qmgr.o: ../../h/adr.h
  149. submit2qmgr.o: ../../h/list_bpt.h
  150. submit2qmgr.o: ../../h/aparse.h
  151. submit2qmgr.o: ../../h/ap.h
  152. submit2qmgr.o: ../../h/util.h
  153. submit2qmgr.o: ../../h/or.h
  154. submit2qmgr.o: ../../h/chan.h
  155. submit2qmgr.o: ../../h/auth.h
  156. submit2qmgr.o: ../../h/list_rchan.h
  157. submit2qmgr.o: ../../h/mta.h
  158. submit2qmgr.o: ../../h/prm.h
  159. chan_debug.o: chan_debug.c
  160. chan_debug.o: ../../h/util.h
  161. chan_debug.o: ../../h/config.h
  162. chan_debug.o: ../../h/ll_log.h
  163. chan_debug.o: ../../h/qmgr.h
  164. chan_debug.o: ../../h/Qmgr-types.h
  165. chan_debug.o: ../../h/Qmgr-ops.h
  166. qstruct2qmgr.o: qstruct2qmgr.c
  167. qstruct2qmgr.o: ../../h/util.h
  168. qstruct2qmgr.o: ../../h/config.h
  169. qstruct2qmgr.o: ../../h/ll_log.h
  170. qstruct2qmgr.o: Qmgr-types.h
  171. qstruct2qmgr.o: ../../h/q.h
  172. qstruct2qmgr.o: ../../h/adr.h
  173. qstruct2qmgr.o: ../../h/list_rchan.h
  174. qstruct2qmgr.o: ../../h/chan.h
  175. qstruct2qmgr.o: ../../h/table.h
  176. qstruct2qmgr.o: ../../h/list_bpt.h
  177. qstruct2qmgr.o: ../../h/auth.h
  178. qstruct2qmgr.o: ../../h/list_bpt.h
  179. qstruct2qmgr.o: ../../h/extension.h
  180. qstruct2qmgr.o: ../../h/mta.h
  181. qstruct2qmgr.o: ../../h/adr.h
  182. qstruct2qmgr.o: ../../h/list_bpt.h
  183. qstruct2qmgr.o: ../../h/aparse.h
  184. qstruct2qmgr.o: ../../h/ap.h
  185. qstruct2qmgr.o: ../../h/util.h
  186. qstruct2qmgr.o: ../../h/or.h
  187. qstruct2qmgr.o: ../../h/chan.h
  188. qstruct2qmgr.o: ../../h/auth.h
  189. qstruct2qmgr.o: ../../h/list_rchan.h
  190. qstruct2qmgr.o: ../../h/mta.h
  191. qstruct2qmgr.o: ../../h/prm.h
  192. recipstate.o: recipstate.c
  193. recipstate.o: ../../h/util.h
  194. recipstate.o: ../../h/config.h
  195. recipstate.o: ../../h/ll_log.h
  196. recipstate.o: ../../h/qmgr.h
  197. recipstate.o: ../../h/Qmgr-types.h
  198. recipstate.o: ../../h/Qmgr-ops.h
  199. comms.o: comms.c
  200. comms.o: ../../h/util.h
  201. comms.o: ../../h/config.h
  202. comms.o: ../../h/ll_log.h
  203. comms.o: ../../h/qmgr-int.h
  204. comms.o: Qmgr-types.h
  205. comms.o: Qmgr-ops.h
  206. comms.o: ../../h/qmgr.h
  207. comms.o: ../../h/Qmgr-types.h
  208. comms.o: ../../h/Qmgr-ops.h
  209. comms.o: consblk.h
  210. consblk.o: consblk.c
  211. consblk.o: ../../h/util.h
  212. consblk.o: ../../h/config.h
  213. consblk.o: ../../h/ll_log.h
  214. consblk.o: consblk.h
  215. cons-misc.o: cons-misc.c
  216. cons-misc.o: ../../h/util.h
  217. cons-misc.o: ../../h/config.h
  218. cons-misc.o: ../../h/ll_log.h
  219. cons-misc.o: ../../h/qmgr-int.h
  220. cons-misc.o: Qmgr-types.h
  221. op_chan.o: op_chan.c
  222. op_chan.o: ../../h/util.h
  223. op_chan.o: ../../h/config.h
  224. op_chan.o: ../../h/ll_log.h
  225. op_chan.o: ../../h/qmgr-int.h
  226. op_chan.o: consblk.h
  227. op_chan.o: Qmgr-types.h
  228. op_msg.o: op_msg.c
  229. op_msg.o: ../../h/util.h
  230. op_msg.o: ../../h/config.h
  231. op_msg.o: ../../h/ll_log.h
  232. op_msg.o: ../../h/qmgr-int.h
  233. op_msg.o: consblk.h
  234. op_msg.o: Qmgr-types.h
  235. op_mta.o: op_mta.c
  236. op_mta.o: ../../h/util.h
  237. op_mta.o: ../../h/config.h
  238. op_mta.o: ../../h/ll_log.h
  239. op_mta.o: ../../h/qmgr-int.h
  240. op_mta.o: consblk.h
  241. op_mta.o: Qmgr-types.h
  242. op_que.o: op_que.c
  243. op_que.o: ../../h/util.h
  244. op_que.o: ../../h/config.h
  245. op_que.o: ../../h/ll_log.h
  246. op_que.o: consblk.h
  247. op_que.o: ../../h/qmgr-int.h
  248. op_que.o: Qmgr-types.h
  249. order.o: order.c
  250. order.o: ../../h/util.h
  251. order.o: ../../h/config.h
  252. order.o: ../../h/ll_log.h
  253. order.o: ../../h/qmgr-int.h
  254. op_filter.o: op_filter.c
  255. op_filter.o: ../../h/util.h
  256. op_filter.o: ../../h/config.h
  257. op_filter.o: ../../h/ll_log.h
  258. op_filter.o: ../../h/qmgr-int.h
  259. op_filter.o: consblk.h
  260. op_filter.o: Qmgr-types.h
  261.  
  262. # DEPENDENCIES MUST END AT END OF FILE
  263. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  264. # see make depend above
  265.